package com.catchman.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.catchman.entity.SysRole;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author catchman
 * @since 2019-04-29
 */
public interface SysRoleDao extends BaseMapper<SysRole> {

    List<SysRole> getRolesByUserId(String userId);

    List<String> getRoleIdsByUserId(String userId);

    Boolean checkRidsContainRval(List<String> rids, String rval);

    Boolean checkUidContainRval(String uid, String rval);
}
